<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			window.onload = function() {
				var num1 = document.getElementById("num1");
				var num2 = document.getElementById("num2");
				num1.innerHTML = "<span style='color: red;'>这是一首歌</span>";
				num2.innerText = "<span style='color: red;'>这是一首歌</span>";
			}
		</script>
	</head>
	<body>
		<div id="num1"></div>
		<div id="num2"></div>
	</body>
</html>
